package com.lenovo.spider.component.interceptor;

import com.lenovo.spider.common.spi.ServiceProvider;
import com.lenovo.spider.component.TaskProcess.AfterDownloaderInterceptor;
import com.lenovo.spider.domain.Task;

/**
 * 请求响应结果检查，检查内容，响应码等
 *
 * @author <a href="mailto:liuhan3@lenovo.com">HanL(liuhan3)</a>
 * on 2018/4/13 16:28
 */
@ServiceProvider
public class ResponseCheck implements AfterDownloaderInterceptor {
    @Override
    public boolean support(Task task) {
        return task.isSuccess();
    }

    @Override
    public Task handle(Task task) throws Exception {
        return null;
    }
}
